import Vue from 'vue'
import VueRouter from 'vue-router'
import Reg from '../views/reg/reg.vue'
import Login from '../views/login/login.vue'

Vue.use(VueRouter)

// 配置路由规则
const routes = [
  { path: '/reg', name: 'reg', component: Reg },
  { path: '/login', name: 'login', component: Login },
]
// 创建路由实例对象
const router = new VueRouter({
  routes
})
// 导出路由出口
export default router
